package com.fnzn.entranceGuard.bean;

import javax.persistence.*;

@Table(name = "guard_white_list")
public class GuardWhiteList {
    @Id
    private Integer id;

    @Column(name = "device_id")
    private String deviceId;

    /**
     * 白名单ID
     */
    @Column(name = "white_list")
    private String whiteList;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return device_id
     */
    public String getDeviceId() {
        return deviceId;
    }

    /**
     * @param deviceId
     */
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    /**
     * 获取白名单ID
     *
     * @return white_list - 白名单ID
     */
    public String getWhiteList() {
        return whiteList;
    }

    /**
     * 设置白名单ID
     *
     * @param whiteList 白名单ID
     */
    public void setWhiteList(String whiteList) {
        this.whiteList = whiteList == null ? null : whiteList.trim();
    }
}